package com.bookmall.member.domain;

import com.baomidou.mybatisplus.annotation.SqlCondition;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.bookmall.common.entity.MyPageEntity;
import com.ruoyi.common.core.annotation.Excel;
import lombok.Data;
import lombok.ToString;

/**
 * @Description:
 * @Author 胡菜鸡
 * @Create 2022-04-21-17:08
 */
@Data
@ToString
public class MemberReceiveAddress extends MyPageEntity {
    private static final long serialVersionUID = 1L;

    /** id（收货地址表） */
    @TableId("id")
    private String id;

    /** 会员id */
    @Excel(name = "会员id")
    private String memberId;

    /** 收货人姓名 */
    @Excel(name = "收货人姓名")
    @TableField(condition = SqlCondition.LIKE)
    private String name;

    /** 收货人电话 */
    @Excel(name = "收货人电话")
    private String phone;

    /** 收货人所在省 */
    @Excel(name = "收货人所在省")
    @TableField(condition = SqlCondition.LIKE)
    private String province;

    /** 收货人所在市 */
    @Excel(name = "收货人所在市")
    private String city;

    /** 收货人学校 */
    @Excel(name = "收货人学校")
    @TableField(condition = SqlCondition.LIKE)
    private String university;

    /** 收货人学院 */
    @Excel(name = "收货人学院")
    @TableField(condition = SqlCondition.LIKE)
    private String academy;

    /** 收货人专业 */
    @Excel(name = "收货人专业")
    @TableField(condition = SqlCondition.LIKE)
    private String major;

    /** 收货的详细地址 */
    @Excel(name = "收货的详细地址")
    private String detailAddress;

    /** 是否设为默认（0是，1否） */
    @Excel(name = "是否设为默认", readConverterExp = "0=是,1=否")
    private Integer defaultStatus;
}
